package desgin.pattern.other.reactor;

import java.io.IOException;

/**
 * Created by kai on 2015/6/28 0028.
 */
public class NioProcessor {
    private NioReactor nioReactor;

    public NioProcessor(String name) throws IOException {
        this.nioReactor = new NioReactor(name);
    }

    public void startup() {
        nioReactor.startup();
    }

    public void postRegister(NioConnection c) {
        System.out.println("流转到processor");
        nioReactor.postRegister(c);
    }
}
